import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn' // 引入中文语言包
import App from './App.vue'
import router from './router'
// 导入工具类
import http from '@/util/http'

//导入全局css样式文件
import '@/assets/global.css'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus, { locale: zhCn }) // 使用中文语言包
 // 添加全局属性或方法
app.config.globalProperties.axios = http

app.mount('#app')
